import request from '@/router/axios';

export const getSmsConfigChangeLogList = (current, size, params) => {
  return request({
    url: '/api/smsconfigchangelog/list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}
export const getSmsConfigChangeLogPage = (current, size, params) => {
  return request({
    url: '/api/smsconfigchangelog/page',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const getSmsConfigChangeLogDetail = (id) => {
  return request({
    url: '/api/smsconfigchangelog/detail',
    method: 'get',
    params: {
      id
    }
  })
}

export const removeSmsConfigChangeLog = (ids) => {
  return request({
    url: '/api/smsconfigchangelog/remove',
    method: 'post',
    params: {
      ids,
    }
  })
}

export const addSmsConfigChangeLog = (row) => {
  return request({
    url: '/api/smsconfigchangelog/submit',
    method: 'post',
    data: row
  })
}

export const updateSmsConfigChangeLog = (row) => {
  return request({
    url: '/api/smsconfigchangelog/submit',
    method: 'post',
    data: row
  })
}

